package com.hzit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**使用nacos步骤
 * 第一步：添加依赖
 * commom的依赖和父工程依赖都要
 *<dependency>
 *           <groupId>com.alibaba.cloud</groupId>
 *            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
 *         </dependency>
 *第二步启动类中添加注解@EnableDiscoveryClient
 *
 * 第三步：
 *application.yml中添加
 * spring:
 *      application:
 *          name: hzit-manager
 *
 *cloud:
 *     nacos:
 *       discovery:
 *         server-addr: localhost:8848
 * */

@SpringBootApplication
//@EnableDiscoveryClient
@EnableFeignClients
public class hzitApplication {
    public static void main(String[] args) {
        SpringApplication.run(hzitApplication.class);
    }
}
